home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- // Insert script helper for:
-
- /**
- @Object: String
- @Method: lastIndexOf - returns the character index of the of
- of the substring starting from the end of the string. The
- search starts at the end of the string or at the
- character position specified by start. If the substring is not found
- the value -1 is returned.
- @Syntax: string.lastIndexOf(substring, [start])
- @Summary: lastIndexOf - returns the character index where the match was found
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- editor.replace("string.lastIndexOf(substring, [start])", selection);
- editor.setActive("Insert string.lastIndexOf");
- }
- }
-
- !!/Script
-